home *** CD-ROM | disk | FTP | other *** search
/ Quick PC 62 / Quick PC 62.iso / I386 / query.as_ / query.asp
Encoding:
Text File  |  2003-06-19  |  18.7 KB  |  620 lines

  1. <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN" "html.dtd">
  2. <HTML>
  3. <HEAD>
  4.  
  5. <META HTTP-EQUIV="Content-Type" content="text/html; charset=Windows-1252">
  6.  
  7. <META NAME="ROBOTS" CONTENT="NOINDEX">
  8.  
  9. <%
  10. ' ********** INSTRUCTIONS FOR QUICK CUSTOMIZATION **********
  11. '
  12. ' This form is set up for easy customization. It allows you to modify the
  13. ' page logo, the page background, the page title and simple query
  14. ' parameters by modifying a few files and form variables. The procedures
  15. ' to do this are explained below.
  16. '
  17. '
  18. ' *** Modifying the Form Logo:
  19.  
  20. ' The logo for the form is named is2logo.gif. To change the page logo, simply
  21. ' name your logo is2logo.gif and place in the same directory as this form. If
  22. ' your logo is not a GIF file, or you don't want to copy it, change the following
  23. ' line so that the logo variable contains the URL to your logo.
  24.  
  25.         FormLogo = "is2logo.gif"
  26.  
  27. '
  28. ' *** Modifying the Form's background pattern.
  29.  
  30. ' You can use either a background pattern or a background color for your
  31. ' form. If you want to use a background pattern, store the file with the name
  32. ' is2bkgnd.gif in the same directory as this file and remove the remark character
  33. ' the single quote character) from the line below. Then put the remark character on
  34. ' the second line below.
  35. '
  36. ' If you want to use a different background color than white, simply edit the
  37. ' bgcolor line below, replacing white with your color choice.
  38.  
  39. '       FormBG = "background = " & chr(34) & "is2bkgnd.gif" & chr(34)
  40.         FormBG = "bgcolor = " & chr(34) & "#FFFFFF" & chr(34)
  41.  
  42.  
  43. ' *** Modifying the Form's Title Text.
  44.  
  45. ' The Form's title text is set on the following line.
  46. %>
  47.  
  48.     <TITLE>Search Results</TITLE>
  49.  
  50. <SCRIPT LANGUAGE="JavaScript">
  51. <!--
  52.     TempString = navigator.appVersion
  53.     if (navigator.appName == "Microsoft Internet Explorer"){    
  54. // Check to see if browser is Microsoft
  55.         if (TempString.indexOf ("4.") >= 0){
  56. // Check to see if it is IE 4
  57.             document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/coua.css">');
  58.         }
  59.         else {
  60.             document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/cocss.css">');
  61.         }
  62.     }
  63.     else if (navigator.appName == "Netscape") {                        
  64. // Check to see if browser is Netscape
  65.         document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/coua.css">');
  66.     }
  67.     else
  68.         document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/cocss.css">');
  69. //-->
  70. </script>
  71.  
  72. <%
  73. '
  74. ' *** Modifying the Form's Search Scope.
  75. '
  76. ' The form will search from the root of your web server's namespace and below
  77. ' (deep from "/" ). To search a subset of your server, for example, maybe just
  78. ' a PressReleases directory, modify the scope variable below to list the virtual path to
  79. ' search. The search will start at the directory you specify and include all sub-
  80. ' directories.
  81.  
  82.         FormScope = "/iishelp/iis"
  83.  
  84. '
  85. ' *** Modifying the Number of Returned Query Results.
  86. '
  87. ' You can set the number of query results returned on a single page
  88. ' using the variable below.
  89.  
  90.         PageSize = 10
  91.  
  92. '
  93. ' *** Setting the Locale.
  94. '
  95. ' The following line sets the locale used for queries. In most cases, this
  96. ' should match the locale of the server. You can set the locale below.
  97.  
  98.         SiteLocale = "EN-US"
  99.  
  100. ' ********** END QUICK CUSTOMIZATION SECTIONS ***********
  101. noise=",about,after,all,also,an,another,any,and,are,as,at,be,because,been,before,being,between,both,but,by,came,can,come,could,did,do,each,for,from,get,got,has,had,he,have,her,here,him,himself,his,how,if,in,into,is,it,like,make,many,me,might,more,most,much,must,my,never,near,now,of,on,only,or,other,our,out,over,said,same,see,should,since,some,still,such,take,than,that,the,their,them,then,there,these,they,this,those,through,to,too,under,up,very,was,way,we,well,were,what,where,which,while,who,with,would,you,your,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,$,1,2,3,4,5,6,7,8,9,0,_,!,&,~,|,?,I,"
  102.  
  103. punc2="$,1234567890_!&~|? #+()"
  104. punc="$,1234567890_!&~|?#@%^+"
  105. %>
  106.  
  107. <%
  108. ' Set Initial Conditions
  109.     NewQuery = FALSE
  110.     UseSavedQuery = FALSE
  111.     rSearchString = ""
  112.  
  113. ' Did the user press a SUBMIT button to execute the form? If so get the form variables.
  114.     if Request.ServerVariables("REQUEST_METHOD") = "POST" then
  115.         rSearchString = Request.Form("SearchString")
  116.     SearchType=Request.QueryString("SearchType")
  117.     if SearchString<>"" then
  118.         Session("SearchStringDisplay")=Server.HTMLEncode(rSearchString)
  119.     end if
  120.         rFreeText = Request.Form("FreeText")
  121.     QueryForm = "Query.Asp"
  122.     rCiResultsSize = Request.Form("CiResultsSize")
  123.      CiLimits = Request.Form("CiLimits")
  124.         ' NOTE: this will be true only if the button is actually pushed.
  125.         ' if Request.Form("Action") = "Search" then
  126.             NewQuery = TRUE
  127.         if CiLimits = "on" then
  128.             RankBase=50
  129.         else
  130.             RankBase=1000
  131.         end if
  132.         ' end if
  133.     end if
  134.     if Request.ServerVariables("REQUEST_METHOD") = "GET" then
  135.         rSearchString = Request.QueryString("SearchString")
  136.     SearchType=Request.QueryString("SearchType")
  137.     QueryForm = "Query.Asp"
  138.     rCiResultsSize = Request.QueryString("CiResultsSize")
  139.                 rFreeText = Request.QueryString("FreeText")
  140.                 FormScope = Server.HTMLEncode(Request.QueryString("sc"))
  141.                 RankBase = CInt(Request.QueryString("RankBase"))
  142.         if Request.QueryString("pg") <> "" then
  143.             NextPageNumber = CInt(Request.QueryString("pg"))
  144.             NewQuery = FALSE
  145.             UseSavedQuery = TRUE
  146.         else
  147.             NewQuery = SearchString <> ""
  148.         end if
  149.     end if
  150.  
  151.     ' remove HTML special characters, they are ignored in search
  152.     SearchString = replace(replace(replace(rSearchString, "<", ""), ">", ""), """", "")
  153.  
  154.     ' encode these texts to avoid cross site scripting
  155.     CiResultsSize = Server.HTMLEncode(rCiResultsSize)
  156.     FreeText = Server.HTMLEncode(rFreeText)
  157.  
  158. %>
  159.  
  160. </HEAD>
  161.  
  162. <BODY <%=FormBG%>>
  163.  
  164. <%
  165.   if NewQuery then
  166.     set Session("Query") = nothing
  167.     set Session("Recordset") = nothing
  168.     NextRecordNumber = 1
  169.  
  170.     'Strip punctuation from search term
  171.     for x = 1 to len(SearchString)
  172.        testpunc= mid(SearchString,x,1)
  173.        if instr(punc,testpunc) then
  174.         SearchStringErr= SearchStringErr
  175.        else
  176.         SearchStringErr = SearchStringErr + testpunc
  177.        end if
  178.     next
  179.     SearchString = SearchStringErr
  180.  
  181.  
  182.   if SearchType=0 Then
  183.     'Strip noise words from search term
  184.     SearchStringComp=SearchString+" "
  185.     for x = 1 to len(SearchStringComp)
  186.     if mid(SearchStringComp,x,1)=" " Then
  187.         ncompare2 = ","+ncompare+","
  188.         if instr(noise,ncompare2) = 0 then
  189.             NewCompare=NewCompare+" "+ncompare
  190.         End If
  191.         ncompare=""
  192.     else
  193.         ncompare=ncompare+mid(SearchString,x,1)
  194.     end if
  195.     next        
  196.     x = len(NewCompare)
  197.     if left(NewCompare,1) = " " Then
  198.        NewCompare = right(NewCompare,(x-1))
  199.     end if
  200.     SearchString=NewCompare
  201.         CompSearch = "$CONTENTS " + SearchString
  202.   end if
  203.  
  204.   if SearchType=1 Then
  205.     CompSearch = chr(34) + SearchString + chr(34)
  206.   end if
  207.  
  208.   if SearchType=2 Then
  209.     'Strip noise words from search term
  210.     SearchStringComp=SearchString+" "
  211.     for x = 1 to len(SearchStringComp)
  212.     if mid(SearchStringComp,x,1)=" " Then
  213.         ncompare2 = ","+ncompare+","
  214.         if instr(noise,ncompare2) = 0 then
  215.             NewCompare=NewCompare+" "+ncompare
  216.         End If
  217.         ncompare=""
  218.     else
  219.         ncompare=ncompare+mid(SearchString,x,1)
  220.     end if
  221.     next        
  222.     x = len(NewCompare)
  223.     if left(NewCompare,1) = " " Then
  224.        NewCompare = right(NewCompare,(x-1))
  225.     end if
  226.     SearchString=NewCompare
  227.     slen=len(SearchString)
  228.     for k = 1 to slen
  229.     slet = Mid(SearchString,k,1)
  230.       if slet <> " " then
  231.             ss1=ss1+slet
  232.       else
  233.         ss1=ss1+ " AND "
  234.       end if
  235.     Next
  236.         CompSearch=ss1
  237.     If Right(CompSearch,5) = " AND " Then CompSearch = Left(CompSearch,Len(CompSearch)-5)
  238.   end if
  239.  
  240.  if SearchType=3 Then
  241.     'Strip noise words from search term
  242.     SearchStringComp=SearchString+" "
  243.     for x = 1 to len(SearchStringComp)
  244.     if mid(SearchStringComp,x,1)=" " Then
  245.         ncompare2 = ","+ncompare+","
  246.         if instr(noise,ncompare2) = 0 then
  247.             NewCompare=NewCompare+" "+ncompare
  248.         End If
  249.         ncompare=""
  250.     else
  251.         ncompare=ncompare+mid(SearchString,x,1)
  252.     end if
  253.     next        
  254.     x = len(NewCompare)
  255.     if left(NewCompare,1) = " " Then
  256.        NewCompare = right(NewCompare,(x-1))
  257.     end if
  258.     SearchString=NewCompare
  259.     slen=len(SearchString)
  260.     for k = 1 to slen
  261.     slet = Mid(SearchString,k,1)
  262.       if slet <> " " then
  263.             ss1=ss1+slet
  264.       else
  265.         ss1=ss1+ " OR "
  266.       end if
  267.     Next
  268.         CompSearch=ss1
  269.     If Right(CompSearch,4) = " OR " Then CompSearch = Left(CompSearch,Len(CompSearch)-4)
  270.   end if
  271.  
  272.   if SearchType=4 Then
  273.     'Strip noise words from search term
  274.     NCompare=""
  275.     NewCompare=""
  276.     SearchStringComp=SearchString+" "
  277.     for x = 1 to len(SearchStringComp)
  278.     if mid(SearchStringComp,x,1)=" " Then
  279.         ncompare2 = ","+ncompare+","
  280.         if instr(noise,ncompare2) = 0 then
  281.             NewCompare=NewCompare+" "+ncompare
  282.         End If
  283.         ncompare=""
  284.     else
  285.         ncompare=ncompare+mid(SearchString,x,1)
  286.     end if
  287.     next        
  288.     x = len(NewCompare)
  289.     if left(NewCompare,1) = " " Then
  290.        NewCompare = right(NewCompare,(x-1))
  291.     end if
  292.     SearchString=NewCompare
  293.     CompSearch = SearchString
  294.   end if
  295.  
  296.  
  297.     set Q = Server.CreateObject("ixsso.Query")
  298.         set util = Server.CreateObject("ixsso.Util")
  299.  
  300.     Q.Query = CompSearch
  301.     Q.Catalog = "Web" 
  302.     Q.SortBy = "rank[d]"
  303.     Q.Columns = "DocTitle, vpath, filename, size, write, characterization, rank"
  304.     Q.MaxRecords = RankBase 
  305.  
  306.         if FormScope <> "/" then
  307.                 util.AddScopeToQuery Q, FormScope, "deep"
  308.         end if
  309.  
  310.         if SiteLocale<>"" then
  311.                 Q.LocaleID = util.ISOToLocaleID(SiteLocale)
  312.         end if
  313.     On Error Resume Next
  314.     set RS = Q.CreateRecordSet("nonsequential")
  315.  
  316.     RS.PageSize = PageSize
  317.     Test = RS.PageSize
  318.     ActiveQuery = TRUE
  319.  
  320.  
  321.  
  322.   elseif UseSavedQuery then
  323.     if IsObject( Session("Query") ) And IsObject( Session("RecordSet") ) then
  324.       set Q = Session("Query")
  325.       set RS = Session("RecordSet")
  326.  
  327.  
  328.       if RS.RecordCount <> -1 and NextPageNumber <> -1 then
  329.         RS.AbsolutePage = NextPageNumber
  330.         NextRecordNumber = RS.AbsolutePosition
  331.       end if
  332.  
  333.       ActiveQuery = TRUE
  334.     else
  335.       Response.Write "ERROR - No saved query"
  336.     end if
  337.   end if
  338.  
  339.  
  340. If Err<>424 Then
  341.  
  342.   if ActiveQuery then
  343.     if not RS.EOF then
  344.  %>
  345.  
  346. <p>
  347. <HR WIDTH=80% ALIGN=center SIZE=3>
  348. <%LastRecordOnPage = NextRecordNumber + RS.PageSize - 1
  349. KLastRecordOnPage=LastRecordOnPage
  350. If KLastRecordOnPage>RS.RecordCount Then KLastRecordOnPage=RS.RecordCount%>
  351.  
  352.  
  353. <b>You searched for <%=Session("SearchStringDisplay")%></b><br><br>
  354. <b><i><font size="3"><%=NextRecordNumber%> - <%=KLastRecordOnPage%> of <%=RS.RecordCount%> results found</b></i></font><br>
  355. <p>
  356.  
  357. <%
  358.         LastRecordOnPage = NextRecordNumber + RS.PageSize - 1
  359.         CurrentPage = RS.AbsolutePage
  360.         if RS.RecordCount <> -1 AND RS.RecordCount < LastRecordOnPage then
  361.             LastRecordOnPage = RS.RecordCount
  362.         end if
  363.  
  364.  %>
  365.  
  366. <%
  367.  
  368. %>
  369.  
  370. <% if Not RS.EOF and NextRecordNumber <= LastRecordOnPage then%>
  371.         <table border=0>
  372. <% end if %>
  373.  
  374. <%
  375.  
  376. Do While Not RS.EOF and NextRecordNumber <= LastRecordOnPage
  377.  
  378.         ' This is the detail portion for Title, Description, URL, Size, and
  379.     ' Modification Date.
  380.  
  381.  
  382.  
  383. TmpExt = Server.HTMLEncode( RS("filename") )
  384. FullExt = Right(TmpExt, 3)
  385.  
  386. If FullExt <> "cnt" and FullExt <> "hhc" and FullExt <> "hpj" and FullExt <> "hlp" and FullExt <> "rtf" and FullExt <> "asf" and FullExt <> "gid" and FullExt <> "fts" and FullExt <> "wmp" and FullExt <> "hhk" and FullExt <> "txt" and FullExt <> "ass" and FullExt <> "idq" and FullExt <> "ncr" and FullExt <> "ncl" and FullExt <> "url" and FullExt <> "css" and FullExt <> "prp" and FullExt <> "htx" and FullExt <> "htw" and FullExt <> "tmp" and FullExt <> "mdb" and FullExt <> "xls" and FullExt <> "chm" Then
  387.  
  388.  
  389.  
  390.  
  391.  
  392.     ' If there is a title, display it, otherwise display the filename.
  393. %>
  394.     <p>
  395.     <tr class="RecordTitle">
  396.                                     
  397.         
  398.         
  399.                 <td><b><%=NextRecordNumber%>.</b></td>
  400.         <b class="RecordTitle"> <td><b>
  401.             <%if VarType(RS("DocTitle")) = 1 or RS("DocTitle") = "" then%>
  402.                 <a href="<%=RS("vpath")%>" class="RecordTitle"><%= Server.HTMLEncode( RS("filename") )%></a>
  403.             <%else%>
  404.                 <a href="<%=RS("vpath")%>" class="RecordTitle"><%= Server.HTMLEncode(RS("DocTitle"))%></a>
  405.             <%end if%>
  406.         </b></b><br>
  407.         
  408.             <%if VarType(RS("characterization")) = 8 and RS("characterization") <> "" then%>
  409.                 <%= RS("characterization")%>
  410.         
  411.         <%end if%>
  412.         <%if CiResultsSize = "on" then%>
  413.                 <%end if%>
  414.         </td>
  415.     </tr>
  416.     <tr>
  417.     </tr>
  418.  
  419.  
  420.  
  421. <%
  422. else
  423.    NextRecordNumber = NextRecordNumber-1
  424. end if%>
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431. <%
  432.           RS.MoveNext
  433.           NextRecordNumber = NextRecordNumber+1
  434.       Loop
  435.  %>
  436.  
  437. </table>
  438.  
  439. <P><BR>
  440.  
  441. <%
  442.   else   ' NOT RS.EOF
  443.       if NextRecordNumber <> 1 then
  444.           Response.Write "No more documents in the query.<P>"
  445.       end if
  446.  
  447.   end if ' NOT RS.EOF%>
  448.  
  449. <%
  450.   if Q.QueryIncomplete then
  451. '    If the query was not executed because it needed to enumerate to
  452. '    resolve the query instead of using the index, but AllowEnumeration
  453. '    was FALSE, let the user know %>
  454.  
  455.     <P>
  456.     <I><B>The query could not be completed. Please resubmit the query.<BR> Technical details: AllowEnumeration must be set to TRUE to complete this query.</B></I><BR>
  457. <%end if
  458.  
  459.  
  460.   if Q.QueryTimedOut then
  461. '    If the query took too long to execute (for example, if too much work
  462. '    was required to resolve the query), let the user know %>
  463.     <P>
  464.     <I><B>The query took too long to complete.</B></I><BR>
  465. <%end if%>
  466.  
  467.  
  468. <TABLE>
  469.  
  470. <%
  471. '    This is the "previous" button.
  472. '    This retrieves the previous page of documents for the query.
  473. %>
  474.  
  475. <%SaveQuery = FALSE%>
  476. <%if CurrentPage > 1 and RS.RecordCount <> -1 then %>
  477.     <td align=left>
  478.         <form action="<%=QueryForm%>" method="get">
  479.             <INPUT TYPE="HIDDEN" NAME="SearchString" VALUE="<%=SearchString%>">
  480.                         <INPUT TYPE="HIDDEN" NAME="FreeText" VALUE="<%=FreeText%>">
  481.         <INPUT TYPE="HIDDEN" NAME="CiResultsSize" VALUE="<%=CiResultsSize%>">
  482.             <INPUT TYPE="HIDDEN" NAME="sc" VALUE="<%=FormScope%>">
  483.             <INPUT TYPE="HIDDEN" name="pg" VALUE="<%=CurrentPage-1%>" >
  484.             <INPUT TYPE="HIDDEN" NAME = "RankBase" VALUE="<%=RankBase%>">
  485.             <input type="submit" value="<< Back">
  486.         </form>
  487.     </td>
  488.         <%SaveQuery = TRUE%>
  489. <%end if%>
  490.  
  491.  
  492. <%
  493. '    This is the "next" button for unsorted queries.
  494. '    This retrieves the next page of documents for the query.
  495.  
  496.   if Not RS.EOF then%>
  497.     <td align=right>
  498.         <form action="<%=QueryForm%>" method="get">
  499.             <INPUT TYPE="HIDDEN" NAME="SearchString" VALUE="<%=SearchString%>">
  500.                         <INPUT TYPE="HIDDEN" NAME="FreeText" VALUE="<%=FreeText%>">
  501.         <INPUT TYPE="HIDDEN" NAME="CiResultsSize" VALUE="<%=CiResultsSize%>">
  502.             <INPUT TYPE="HIDDEN" NAME="sc" VALUE="<%=FormScope%>">
  503.             <INPUT TYPE="HIDDEN" name="pg" VALUE="<%=CurrentPage+1%>" >
  504.             <INPUT TYPE="HIDDEN" NAME = "RankBase" VALUE="<%=RankBase%>">
  505.  
  506.                 <% NextString = "More >>"%>
  507.             <input type="submit" value="<%=NextString%>">
  508.         </form>
  509.     </td>
  510.     <%SaveQuery = TRUE%>
  511. <%end if%>
  512.  
  513. </TABLE>
  514.  
  515. <% ' Display the page number %>
  516.  <%if RS.RecordCount = 0 then%>
  517.         No documents matched the query <%=SearchString%>.<br><br>
  518.  
  519.     You might want to:
  520.     <UL><LI>Let us know about this <a href="mailto:iisdocs@microsoft.com?subject=<%=SearchString%>-search%20term%20not%20matched&body=The%20term%20'<%=SearchString%>'%20produced%20no%20matches.">(mailto:iisdocs@microsoft.com)</a> so that we can improve Search in future releases.
  521.     <LI>Check the Index for related terms.
  522.     <LI>Double-check your spelling and syntax.
  523.     <LI>Try a different Search option (Standard, Exact Phrase, Any Words, All Words, and Boolean options are available).
  524.     <LI>Try your query again later. If you've just started Indexing Service, it may take a few minutes to catalog the IIS documentation.
  525.     </UL>
  526.     <%else%>
  527.  
  528. Page <%=CurrentPage%>
  529. <%if RS.PageCount <> -1 then
  530.      Response.Write " of " & RS.PageCount
  531.   end if %>
  532. <%end if%>
  533.  
  534. <%
  535.     ' If either of the previous or back buttons were displayed, save the query
  536.     ' and the recordset in session variables.
  537.     if SaveQuery then
  538.         set Session("Query") = Q
  539.         set Session("RecordSet") = RS
  540.     else
  541.         RS.close
  542.         Set RS = Nothing
  543.         Set Q = Nothing
  544.         set Session("Query") = Nothing
  545.         set Session("RecordSet") = Nothing
  546.     end if
  547.  %>
  548. <% end if %>
  549.  
  550.  
  551. </BODY>
  552. </HTML>
  553. <%else%>
  554. <%
  555.  
  556.  
  557.     'Strip noise words from search term
  558.     NCompare=""
  559.     NewCompare=""
  560.     SearchStringComp=SearchString+" "
  561.     for x = 1 to len(SearchStringComp)
  562.     if mid(SearchStringComp,x,1)=" " Then
  563.         ncompare2 = ","+ncompare+","
  564.         if instr(noise,ncompare2) = 0 then
  565.             NewCompare=NewCompare+" "+ncompare
  566.         End If
  567.         ncompare=""
  568.     else
  569.         ncompare=ncompare+mid(SearchString,x,1)
  570.     end if
  571.     next        
  572.     x = len(NewCompare)
  573.     if left(NewCompare,1) = " " Then
  574.        NewCompare = right(NewCompare,(x-1))
  575.     end if
  576.     SearchString=NewCompare
  577.  
  578.     'Strip punctuation from search term
  579.     SearchStringErr = ""
  580.     for x = 1 to len(SearchString)
  581.        testpunc= mid(SearchString,x,1)
  582.        if instr(punc2,testpunc) then
  583.         SearchStringErr= SearchStringErr
  584.        else
  585.         SearchStringErr = SearchStringErr + testpunc
  586.        end if
  587.     next
  588.     SearchString = SearchStringErr
  589.     CompSearch=SearchString
  590.  
  591. %>
  592.  
  593.  
  594. <%if SearchString = "" or instr(SearchString,"*") or instr(CompSearch,")") or instr(CompSearch,"(") or right(CompSearch,3)="OR " or right(CompSearch,4)="AND " then%>
  595. <b>Indexing Services was unable to process your query.<p></b><br>
  596.  
  597. Please rephrase the query and try again. Some common words (such as "get," "for," and "many") are not indexed. Also, do not use punctuation marks (commas, periods, and so on) in your query.
  598.  
  599. <%else%>
  600.  
  601. Indexing Service not started<p>
  602. *<%=CompSearch%>*
  603. <br>
  604.  
  605.  
  606. In order to perform search queries on the IIS documentation, you must first start Indexing Service.<br>
  607.  <p>
  608. To start Indexing Service,
  609. <ol>
  610. <li>On the computer running IIS, right-click the <b>My Computer</b> icon and click <b>Manage</b>.<p>
  611. <li>Expand the <b>Services and Applications</b> node in the MMC.<p>
  612. <li>Select <b>Indexing Service</b>.</p>
  613. <li>Click the <b>Action</b> menu and then click <b>Start</b>.<p>
  614. </ol> <p>
  615. Note: It may take Indexing Service a few minutes to catalog the IIS documentation.<p>
  616. In order to use Search while viewing the documentation remotely, Indexing Service must be running on the computer that is serving the documentation. If you are unable to start Indexing Service, please contact the Web site administrator.
  617. <%end if%>
  618. <% end if %>
  619.  
  620.